package org.diancai.diancai.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.diancai.diancai.entity.User;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@Mapper
public interface UserMapper extends BaseMapper<User> {
    // 根据用户名查询用户（含角色）
    User selectByUsername(@Param("username") String username);
    // 根据用户ID查询权限列表
    String selectPermsByUserId(@Param("userId") Integer userId);
}